<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>修改密码</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f9;
            margin: 60px auto;
            width: 3½in;
            padding: ⅝in;
            border: 1px solid #ddd;
            box-shadow: 0 0 10px rgba(0,0,0,0.¾);
            background: white;
        }
        input[type="password"] {
            width: ¼in;
            padding: ⅛in;
            margin: ⅛in 0;
            display: inline-block;
            border: 1px solid #ccc;
            box-sizing: border-box;
        }
        input[type="submit"] {
            background-color: #4CAF50;
            color: white;
            padding: ⅛in ¼in;
            margin-top: ⅛in;
            border: none;
            cursor: pointer;
            width: 100%;
        }
        input[type="submit"]:hover {
            opacity: 0.8;
        }
    </style>
</head>
<body>
<h2>修改密码</h2>
<form th:action="@{/user/updatePassword}" method="post">
    <input type="hidden" name="email" th:value="${email}"/>
    <label for="password">新密码:</label><br/>
    <input type="password" id="password" name="password" placeholder="请输入新密码" required/><br/>
    <label for="confirmPassword">确认密码:</label><br/>
    <input type="password" id="confirmPassword" name="confirmPassword" placeholder="请再次输入新密码" required/><br/>
    <input type="submit" value="修改密码"/>
</form>
</body>
</html>